package com.wswy.wzcx.model.resp;

import android.os.Parcel;
import com.google.gson.annotations.SerializedName;
import com.wswy.wzcx.model.license.UserCarInfo;

public class TrafficViolationResp implements android.os.Parcelable {



  @SerializedName("violation")
  public FineDataResp fineData;


  @SerializedName("carInfo")
  public UserCarInfo userCarInfo;

  public transient boolean fromCache = false;
  public transient boolean noCache = false;

  public TrafficViolationResp() {
  }

  protected TrafficViolationResp(Parcel in) {
    fineData = in.readParcelable(FineDataResp.class.getClassLoader());
    userCarInfo = in.readParcelable(UserCarInfo.class.getClassLoader());
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(fineData, flags);
    dest.writeParcelable(userCarInfo, flags);
  }

  @Override
  public int describeContents() {
    return 0;
  }

  public static final Creator<TrafficViolationResp> CREATOR = new Creator<TrafficViolationResp>() {
    @Override
    public TrafficViolationResp createFromParcel(Parcel in) {
      return new TrafficViolationResp(in);
    }

    @Override
    public TrafficViolationResp[] newArray(int size) {
      return new TrafficViolationResp[size];
    }
  };
}
